<%--
  Created by IntelliJ IDEA.
  User: 86135
  Date: 2023/3/27
  Time: 14:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE HTML>
<html>
<head>
    <title>首页</title>
    <link rel="stylesheet" href="../css/semantic.min.css">
    <script src="${pageContext.request.contextPath}/statics/js/semantic.min.js"></script>
    <script src="http://code.jquery.com/jquery-3.1.1.min.js"></script>
    <style type="text/css">
        body {
            font-family: 'Raleway', sans-serif;
            background-image: url("../images/bg.png");
            background-size: cover;
            background-repeat: no-repeat;
            height: 100vh;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: 300;
        }

        .all {
            display: flex;
            -webkit-perspective: 10px;
            perspective: 10px;
            -webkit-transform: perspective(300px) rotateX(20deg);
            transform: perspective(300px) rotateX(20deg);
            will-change: perspective;
            -webkit-perspective-origin: center center;
            perspective-origin: center center;
            transition: all 1.3s ease-out;
            justify-content: center;
            -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
        }

        .all:hover {
            -webkit-perspective: 1000px;
            perspective: 1000px;
            transition: all 1.3s ease-in;
            -webkit-transform: perspective(10000px) rotateX(0deg);
            transform: perspective(10000px) rotateX(0deg);
        }
        .all:hover .text {
            opacity: 1;
        }
        .all:hover > div {
            opacity: 1;
            transition-delay: 0s;
        }
        .all:hover .explainer {
            opacity: 0;
        }

        .left, .center, .right, .lefter, .righter, .bottom{
            width: 200px;
            height: 150px;
            /*-webkit-transform-style: preserve-3d;*/
            /*transform-style: preserve-3d;*/
            border-radius: 10px;
            border: 1px solid #fff;
            box-shadow: 0 0 20px 5px rgba(100, 100, 255, 0.4);
            opacity: 0;
            transition: all .3s ease;
            transition-delay: 1s;
            position: relative;
            background-position: center center;
            background-size: contain;
            background-repeat: no-repeat;
            background-color: #58d;
            cursor: pointer;
            background-blend-mode: color-burn;
        }
        .jia{
            width: 200px;
            height: 150px;
            /*-webkit-transform-style: preserve-3d;*/
            /*transform-style: preserve-3d;*/
            border-radius: 10px;
            opacity: 0;
        }

        .left:hover, .center:hover, .right:hover, .lefter:hover, .righter:hover, .bottom:hover {
            box-shadow: 0 0 30px 10px rgba(100, 100, 255, 0.6);
            background-color: #ccf;
        }


        .text {
            -webkit-transform: translateY(30px);
            transform: translateY(30px);
            opacity: 0;
            transition: all .3s ease;
            bottom: 0;
            left: 5px;
            position: absolute;
            will-change: transform;
            color: #000;
            text-shadow: 0 0 5px rgba(100, 100, 255, 0.6);
            margin-left: 65px;
        }

        .lefter {
            -webkit-transform: translateX(-60px) translateZ(-50px) rotateY(-10deg);
            transform: translateX(-60px) translateZ(-50px) rotateY(-10deg);
            background-image: url(${pageContext.request.contextPath}/statics/images/book.png);
        }

        .left {
            -webkit-transform: translateX(-30px) translateZ(-25px) rotateY(-5deg);
            transform: translateX(-30px) translateZ(-25px) rotateY(-5deg);
            background-image: url(${pageContext.request.contextPath}/statics/images/changepwd.png);
        }

        .center {
            opacity: 1;
            background-image: url(${pageContext.request.contextPath}/statics/images/information.png);
        }

        .right {
            -webkit-transform: translateX(30px) translateZ(-25px) rotateY(5deg);
            transform: translateX(30px) translateZ(-25px) rotateY(5deg);
            background-image: url(${pageContext.request.contextPath}/statics/images/jieshu.png);
        }

        .righter {
            -webkit-transform: translateX(60px) translateZ(-50px) rotateY(10deg);
            transform: translateX(60px) translateZ(-50px) rotateY(10deg);
            background-image: url(${pageContext.request.contextPath}/statics/images/pinglun.png);
        }

        .bottom {
            -webkit-transform: translateY(200px) translateZ(-25px) rotateY(10deg) translateX(-550px);
            transform: translateY(200px) translateZ(-25px)  translateX(-600px) rotateX(-10deg);
            background-image: url(${pageContext.request.contextPath}/statics/images/exit.png);
        }

        .explainer {
            font-weight: 300;
            font-size: 2rem;
            color: #fff;
            transition: all .6s ease;
            width: 100%;
            height: 100%;
            background-color: #303050;
            background-image: radial-gradient(circle at center top, #cce, #33a);
            border-radius: 10px;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .ref {
            background-color: #000;
            background-image: linear-gradient(to bottom, #d80, #c00);
            border-radius: 3px;
            padding: 7px 10px;
            position: absolute;
            font-size: 16px;
            bottom: 10px;
            right: 10px;
            color: #fff;
            text-decoration: none;
            text-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
        }
        .ref::first-letter {
            font-size: 12px;
        }
        a{
            text-decoration:none;
            display: inline-block;
            height: inherit;
        }
    </style>
</head>
<body>




<div class="all">

    <div class="jia" >
        <div class="text"></div>
    </div>

    <div class="lefter" onclick="location.href='${pageContext.request.contextPath}/book/findAllBooks'">
        <div class="text">书籍列表</div>
    </div>

    <div class="left" onclick="location.href='${pageContext.request.contextPath}/account/toUpdatePassword'">
        <div class="text">修改密码</div>
    </div>

    <div class="center" onclick="location.href='${pageContext.request.contextPath}/account/toUpdateAccount'">
        <div class="explainer"><span>Welcome</span></div>
        <div class="text">个人资料</div>
    </div>

    <div class="right" onclick="location.href='${pageContext.request.contextPath}/user/showBorrowByUser'">
        <div class="text">管理借书</div>
    </div>

    <div class="righter" onclick="location.href='${pageContext.request.contextPath}/comment/listAllComments'">
        <div class="text">个人评论</div>
    </div>

    <div class="bottom" onclick="location.href='${pageContext.request.contextPath}/out'">
        <div class="text">退出登录</div>
    </div>

</div>
</body>
</html>